import org.antlr.runtime.*;

public class ErrorHandler {
	public static void main(String[] args) {
		try {
            XMLexer_v2 xmlexer = new XMLexer_v2(new ANTLRFileStream(args[0]));
            CommonTokenStream xmltokens = new CommonTokenStream(xmlexer);
            XMLParser_v2 xmlparser = new XMLParser_v2(xmltokens);
            xmlparser.xmldocument();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
